package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.node.ArrayNode;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 聊天记录对象 chat_config
 *
 * @author ruoyi
 * @date 2024-10-14
 */
public class ChatConfig extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 聊天日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "聊天日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date time;

    /** 显示头像 */
    @Excel(name = "显示头像")
    private Integer isAvatar;

    /** 聊天标题 */
    @Excel(name = "聊天标题")
    private String title;

    /** 昵称a */
    @Excel(name = "昵称a")
    private String nickNameA;

    /** 头像a */
    @Excel(name = "头像a")
    private String avatarA;

    /** 昵称b */
    @Excel(name = "昵称b")
    private String nickNameB;

    /** 头像b */
    @Excel(name = "头像b")
    private String avatarB;

    /** 内容a */
    @Excel(name = "内容a")
    private String contentA;

    /** 内容b */
    @Excel(name = "内容b")
    private String contentB;

    /** 链接 */
    @Excel(name = "链接")
    private String url;

    /** 链接标题 */
    @Excel(name = "链接标题")
    private String urlTitle;

    /**
     * 创建人
     */
    private Long createById;

    /**
     * 唯一id
     */
    private Integer uniqueId;

    private ArrayNode fields;

    public ArrayNode getFields() {
        return fields;
    }

    public void setFields(ArrayNode fields) {
        this.fields = fields;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setTime(Date time)
    {
        this.time = time;
    }

    public Date getTime()
    {
        return time;
    }
    public void setIsAvatar(Integer isAvatar)
    {
        this.isAvatar = isAvatar;
    }

    public Integer getIsAvatar()
    {
        return isAvatar;
    }
    public void setTitle(String title)
    {
        this.title = title;
    }

    public String getTitle()
    {
        return title;
    }
    public void setNickNameA(String nickNameA)
    {
        this.nickNameA = nickNameA;
    }

    public String getNickNameA()
    {
        return nickNameA;
    }
    public void setAvatarA(String avatarA)
    {
        this.avatarA = avatarA;
    }

    public String getAvatarA()
    {
        return avatarA;
    }
    public void setNickNameB(String nickNameB)
    {
        this.nickNameB = nickNameB;
    }

    public String getNickNameB()
    {
        return nickNameB;
    }
    public void setAvatarB(String avatarB)
    {
        this.avatarB = avatarB;
    }

    public String getAvatarB()
    {
        return avatarB;
    }
    public void setContentA(String contentA)
    {
        this.contentA = contentA;
    }

    public String getContentA()
    {
        return contentA;
    }
    public void setContentB(String contentB)
    {
        this.contentB = contentB;
    }

    public String getContentB()
    {
        return contentB;
    }
    public void setUrl(String url)
    {
        this.url = url;
    }

    public String getUrl()
    {
        return url;
    }
    public void setUrlTitle(String urlTitle)
    {
        this.urlTitle = urlTitle;
    }

    public String getUrlTitle()
    {
        return urlTitle;
    }
    public void setCreateById(Long createById)
    {
        this.createById = createById;
    }

    public Long getCreateById()
    {
        return createById;
    }
    public void setUniqueId(Integer uniqueId)
    {
        this.uniqueId = uniqueId;
    }

    public Integer getUniqueId()
    {
        return uniqueId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("time", getTime())
                .append("isAvatar", getIsAvatar())
                .append("title", getTitle())
                .append("nickNameA", getNickNameA())
                .append("avatarA", getAvatarA())
                .append("nickNameB", getNickNameB())
                .append("avatarB", getAvatarB())
                .append("contentA", getContentA())
                .append("contentB", getContentB())
                .append("url", getUrl())
                .append("urlTitle", getUrlTitle())
                .append("createTime", getCreateTime())
                .append("updateTime", getUpdateTime())
                .append("createBy", getCreateBy())
                .append("createById", getCreateById())
                .append("updateBy", getUpdateBy())
                .append("uniqueId", getUniqueId())
                .toString();
    }
}
